@(productForm: Form[Product])
@import helper._
@import helper.twitterBootstrap._

@main("Product form") {
<h1> New Product Form</h1>

@helper.form(action = routes.Products.save()) {
<fieldset>
<legend>
Product (@productForm("productName").valueOr("New"))
</legend>
@helper.inputText(productForm("productId"), '_label -> "Product Id")
@helper.inputText(productForm("productName"), '_label -> "Product Name")
@helper.textarea(productForm("productDescription"), '_label -> "Product Description")
</fieldset>
<input type="submit" class = "btn btn-primary" value = "Save">

<a class="btn" href="@routes.Products.lists()">Back</a>
}
}